//
//  ViewController.m
//  NiuProject
//
//  Created by MyMac on 15/10/19.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "ViewController.h"
#import "EllipseView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton*btn=[[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 44)];
    btn.layer.cornerRadius=btn.bounds.size.height/2.0;
    btn.clipsToBounds=YES;
    [btn setTitle:@"哈哈" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
    btn.layer.borderWidth=3;
    btn.layer.borderColor=[UIColor redColor].CGColor;
    [self.view addSubview:btn];
    EllipseView*e=[[EllipseView alloc]initWithFrame:CGRectMake(10, 200, 200, 44)];
    e.borderColor=[UIColor redColor];
    [self.view addSubview:e];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
